home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
CineMorph
/
Shear.cmorph
< prev
next >
Wrap
Text File
|
1996-03-02
|
495b
|
30 lines
/*
* Text macro for CineMorph
*
*/
OPTIONS RESULTS
GetImageSize ; PARSE VAR result width height
GetGridSize ; PARSE VAR result gridx gridy
RequestNumber '"Shear Amount:"' 2 ; IF rc ~= 0 THEN EXIT
shearamount = result
LockGui
shear = 0
DO j = (gridy-1) TO 0 BY -1
DO i = 0 TO (gridx-1)
px = (i * (width-1) / (gridx-1)) + shear
py = (j * (height-1) / (gridy-1))
SetPoint Dest i j px py
END
shear = shear + shearamount
END
UnlockGui
RedrawGrid Dest
EXIT